package filter;

import filter.FilterSetup.SomeObject;

public class IdRangeFilter extends Filter<SomeObject> {

	
	private final Long firstID;
	private final Long lastID;

	public IdRangeFilter(Long firstID, Long lastID) {
		this.firstID = firstID;
		this.lastID = lastID;
	}
	
	@Override
	protected boolean matchesCriteria(SomeObject object) {
		return object.getId()>= firstID && object.getId()<=lastID;
	}

}
